<!DOCTYPE HTML>
{% if site.lang %}
<html lang="{{ site.lang }}" class="_theme-default">
{% else %}
<html>
{% endif %}
<head>
  <meta charset="utf-8">
  <title>{% if page.url == "/" %}{{page.title}}{% else %}{% if page.title %}{% if site.titlecase %}{{ page.title | titlecase }}{% else %}{{ page.title }}{% endif %} - {% endif %}{{ site.title }}{% endif %}</title>
  {% capture description %}
    {% if page.url == "/" %} {{ site.description }}
    {% elsif page.description %}{{ page.description }}
    {% else %}{{ content | raw_content }}
    {% endif %}
  {% endcapture %}
  <meta name="description" content="{{ description | strip_html | condense_spaces | truncate:150 }}">
  {% if page.keywords %}<meta name="keywords" content="{{ page.keywords }}">{% endif %}
  <meta name="HandheldFriendly" content="True">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="mobile-web-app-capable" content="yes">
  {% capture canonical %}{{ site.url }}{% if site.permalink contains '.html' %}{{ page.url }}{% else %}{{ page.url | remove:'index.html' }}{% endif %}{% endcapture %}
  <link rel="canonical" href="{{ canonical }}">
  <link href="{{root_url}}/favicon.png" rel="icon">
  {% asset application.css !integrity %}
  {% asset application.js !integrity %}
  {%if page.slug %}<script src="{{root_url}}/json/{{page.slug}}.js"></script>{%endif %}
  {% include google_analytics.html %}
</head>
